<?php

function printAdminMessage() {
    echo '<div class="template_span">
    		Bienvenue aux administrateurs, veuillez vous connecter !
			</div>';
}

function view_connexion_wrong_ids() {
    return '
    <div class="template_span">L\'identifiant ou le mot de passe n\'est pas valide, Veuillez r&eacuteessayer !</div>
        
    <form id="connexion" action="' . URL_ROOT . 'admin" method="POST">
				
					<div class="left">
						<label style="display: block;" for="email" >Pseudo</label>
						<input style="display: block;" type="text" id="email" name="email">
					</div>
					
					<div class="left">
						<label style="display: block;" for="password">Password</label>
						<input style="display: block;" type="password" id="password" name="password">
					</div>
					
					<div class="left">
						<label style="display: block;" for="password">&nbsp;</label>
						<button class="button" type="submit" id="connexion_button">login</button>
                                                <a id="oublie" href="' . URL_ROOT . 'oublie">Mot de passe oubli&eacute; ?</a>
					</div>
					
					<div class="clear"></div>
			</form>';
}

function view_not_connexion_form() {
    return
            '<form id="connexion" action="' . URL_ROOT . 'admin" method="POST">
				
					<div class="left">
						<label style="display: block;" for="email" >Pseudo</label>
						<input style="display: block;" type="text" id="email" name="email">
					</div>
					
					<div class="left">
						<label style="display: block;" for="password">Password</label>
						<input style="display: block;" type="password" id="password" name="password">
					</div>
					
					<div class="left">
						<label style="display: block;" for="password">&nbsp;</label>
						<button class="button" type="submit" id="connexion_button">login</button>
                                                <a id="oublie" href="' . URL_ROOT . 'oublie">Mot de passe oubli&eacute; ?</a>
					</div>
					
					<div class="clear"></div>
			</form>';
}

function view_connexion_greeting() {

    echo'
            <div id="annonce">
                    Bienvenue dans le backoffice !
            </div>
            
            <div id="pannel_control">
                <div id="createbox">
                    <div id="admin_title">
                        Espace création
                    </div></br>
                    <a href="' . URL_ROOT . 'create-new"><div id="control_link">Creer une actualité</div></a></br>
                    <a href="' . URL_ROOT . 'create-work"><div id="control_link">Ajouter une oeuvre</div></a></br>
                    <a href="' . URL_ROOT . 'create-admin"><div id="control_link">Creer un admin</div></a></br>
                </div>
                <div id="modifybox">
                    <div id="admin_title">
                        Espace modification
                    </div></br>
                    <a href="' . URL_ROOT . 'update-news"><div id="control_link">Gerer les actualit&eacute;s</div></a></br>
                    <a href="' . URL_ROOT . 'update-work"><div id="control_link">Gerer les oeuvres</div></a></br>
                    <a href="' . URL_ROOT . 'update-admin"><div id="control_link">Gerer les utilisateurs</div></a></br>
                    <a href="' . URL_ROOT . 'control-slide"><div id="control_link">Gerer le slide d\'acceuil</div></a></br>
                    <a href="' . URL_ROOT . 'update-home"><div id="control_link">Gerer le message d\'acceuil</div></a></br>
                    <a href="' . URL_ROOT . 'update-about"><div id="control_link">Gerer l\'onglet qui sommes nous ?</div></a></br>
                    <a href="' . URL_ROOT . 'update-comments"><div id="control_link">Gerer les commentaires</div></a></br>
                </div>
            </div>
        ';
}

?>
